cmake_minimum_required(VERSION 3.0.2)
project(traj_server)

## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)

find_package(Eigen3 REQUIRED)

find_package(catkin REQUIRED COMPONENTS
  # mav_msgs
  quad_msgs
  roscpp
  rosbag
  transform_utils
)

catkin_package()

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
  ${EIGEN3_INCLUDE_DIRS}
)

add_library(traj_server src/traj_server.cpp)
target_link_libraries(traj_server
  ${catkin_LIBRARIES}
)

add_executable(traj_server_node src/traj_server_node.cpp)
target_link_libraries(traj_server_node
  ${catkin_LIBRARIES}
  traj_server
)